package com.example.playandroid.model.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "browse_history")
data class Article(
    @PrimaryKey(autoGenerate = true)
    val uid: Int,
    @ColumnInfo(name = "apk_link")
    val apkLink: String,
    @ColumnInfo(name = "audit")
    val audit: Int,
    @ColumnInfo(name = "author")
    val author: String,
    @ColumnInfo(name = "can_edit")
    val canEdit: Boolean
    // todo: fix code
)

// local type
// 历史记录
const val HISTORY = 10

// 首页置顶
const val HOME_TOP = 20

// 首页
const val HOME = 30

// 项目
const val PROJECT = 40

// 公众号
const val OFFICIAL = 50